
<form id="info-form" method="post">
    <table  cellpadding=5 cellspacing=0 width=100% align="center" class="grid2" border=0>
        <tr><td align="right">用户名：</td>
            <td><input name="username" id="txtUserName" validType="length[2,40]" required="true" type="text" class="easyui-textbox" value="@if(!empty($info)){{$info['username']}}@endif"></td>
            <td align="right">性别：</td>
            <td><select id="cc" class="easyui-combobox" data-options="panelMaxHeight:60" name="sex" style="width:60px;">
                    <option value="M">男</option>
                    <option value="W">女</option>
                    <option>其他</option>
                </select>
            </td>
        </tr>
        <tr>
            <td align="right">姓名：</td>
            <td><input name="realname" id="txtRealName" validType="length[2,40]" required="true" type="text" class="easyui-textbox" value="@if(!empty($info)){{$info['realname']}}@endif"></td>
            <td align="right">QQ：</td>
            <td><input name="qq" id="txtCode" validType="length[2,40]" type="text" class="easyui-textbox" value="@if(!empty($info)){{$info['qq']}}@endif"></td>
        </tr>
        <tr>
            <td align="right">Email：</td>
            <td><input name="email" id="txtCode" validType="length[2,40]" type="text" class="easyui-textbox" class="txt03" value="@if(!empty($info)){{$info['email']}}@endif"></td>
            <td align="right">手机号：</td>
            <td><input name="phone" id="txtCode" validType="length[2,40]" type="text" class="easyui-textbox" value="@if(!empty($info)){{$info['phone']}}@endif"></td>
        </tr>
        <tr>
            <td align="right">传真：</td>
            <td><input name="fax" id="txtCode" validType="length[2,40]" type="text" class="easyui-textbox" value="@if(!empty($info)){{$info['fax']}}@endif" ></td>
            <td align="right">照片：</td>
            <td><input class="easyui-filebox" style="width:175px" name="photo" id="upload"></td>
        </tr>
        <tr>
            <td align="right">备注：</td>
            <td colspan =3><textarea  id="txtDescription" name="remark" rows="3" style="width:444px;height:50px;" class="easyui-textbox" value="@if(!empty($info)){{$info['remark']}}@endif"></textarea></td>
        </tr>
        <tr><td align="right">有效性：</td><td colspan="3"><input id="chkEnabled" type="checkbox" name="is_active"  @if(empty($info['is_active'])) @else checked="checked" @endif/><label>有效</label>  <span style="color:#666;padding-left:20px;">注：用户无效（禁用该用户）后，该用户将不能登录。</span></td></tr>
        <tr><td align="right" style="width: 80px;">是否管理员：</td><td colspan="3"><input id="chkEnabled" type="checkbox" name="is_admin" @if(empty($info['is_admin'])) @else checked="checked" @endif/><label>有效</label></td></tr>
    </table>
    <input type="hidden" name="org_id" value="1">
</form>
<script>
    $('#upload').filebox({
        buttonText: '选择',
        buttonAlign: 'right'
    });
</script>